namespace ShareMarking.Entity {
    	using System;
    	
    	
    	/// <summary>
    	/// 表名：test_Hospital 主键列：
    	/// </summary>
    	[SerializableAttribute()]
    	public partial class test_Hospital : MySoft.Data.Entity {
    		
    		protected String _HospitalID;
    		
    		protected String _Name__c;
    		
    		protected String _Code__c;
    		
    		protected String _Region__c;
    		
    		protected String _Area__c;
    		
    		protected String _Owner__c;
    		
    		protected String _MSR_StaffID__c;
    		
    		protected Boolean? _Active__c;
    		
    		protected String _DataType__c;
    		
    		protected String _Status__c;
    		
    		protected String _Sync_Date__c;
    		
    		protected String _Sync_Status__c;
    		
    		public String HospitalID {
    			get {
    				return this._HospitalID;
    			}
    			set {
    				this.OnPropertyValueChange(_.HospitalID, _HospitalID, value);
    				this._HospitalID = value;
    			}
    		}
    		
    		public String Name__c {
    			get {
    				return this._Name__c;
    			}
    			set {
    				this.OnPropertyValueChange(_.Name__c, _Name__c, value);
    				this._Name__c = value;
    			}
    		}
    		
    		/// <summary>
    		/// 医院编号
    		/// </summary>
    		public String Code__c {
    			get {
    				return this._Code__c;
    			}
    			set {
    				this.OnPropertyValueChange(_.Code__c, _Code__c, value);
    				this._Code__c = value;
    			}
    		}
    		
    		/// <summary>
    		/// 医院大区
    		/// </summary>
    		public String Region__c {
    			get {
    				return this._Region__c;
    			}
    			set {
    				this.OnPropertyValueChange(_.Region__c, _Region__c, value);
    				this._Region__c = value;
    			}
    		}
    		
    		/// <summary>
    		/// 医院片区
    		/// </summary>
    		public String Area__c {
    			get {
    				return this._Area__c;
    			}
    			set {
    				this.OnPropertyValueChange(_.Area__c, _Area__c, value);
    				this._Area__c = value;
    			}
    		}
    		
    		/// <summary>
    		/// 医院所属人
    		/// </summary>
    		public String Owner__c {
    			get {
    				return this._Owner__c;
    			}
    			set {
    				this.OnPropertyValueChange(_.Owner__c, _Owner__c, value);
    				this._Owner__c = value;
    			}
    		}
    		
    		/// <summary>
    		/// 医院所属员工编
    		/// </summary>
    		public String MSR_StaffID__c {
    			get {
    				return this._MSR_StaffID__c;
    			}
    			set {
    				this.OnPropertyValueChange(_.MSR_StaffID__c, _MSR_StaffID__c, value);
    				this._MSR_StaffID__c = value;
    			}
    		}
    		
    		/// <summary>
    		/// 医院已激活
    		/// </summary>
    		public Boolean? Active__c {
    			get {
    				return this._Active__c;
    			}
    			set {
    				this.OnPropertyValueChange(_.Active__c, _Active__c, value);
    				this._Active__c = value;
    			}
    		}
    		
    		/// <summary>
    		/// 数据类型
    		/// </summary>
    		public String DataType__c {
    			get {
    				return this._DataType__c;
    			}
    			set {
    				this.OnPropertyValueChange(_.DataType__c, _DataType__c, value);
    				this._DataType__c = value;
    			}
    		}
    		
    		/// <summary>
    		/// 同步结果
    		/// </summary>
    		public String Status__c {
    			get {
    				return this._Status__c;
    			}
    			set {
    				this.OnPropertyValueChange(_.Status__c, _Status__c, value);
    				this._Status__c = value;
    			}
    		}
    		
    		/// <summary>
    		/// 同步时间
    		/// </summary>
    		public String Sync_Date__c {
    			get {
    				return this._Sync_Date__c;
    			}
    			set {
    				this.OnPropertyValueChange(_.Sync_Date__c, _Sync_Date__c, value);
    				this._Sync_Date__c = value;
    			}
    		}
    		
    		/// <summary>
    		/// 同步状态
    		/// </summary>
    		public String Sync_Status__c {
    			get {
    				return this._Sync_Status__c;
    			}
    			set {
    				this.OnPropertyValueChange(_.Sync_Status__c, _Sync_Status__c, value);
    				this._Sync_Status__c = value;
    			}
    		}
    		
    		/// <summary>
    		/// 获取实体对应的表名
    		/// </summary>
    		protected override MySoft.Data.Table GetTable() {
    			return new MySoft.Data.Table<test_Hospital>("test_Hospital");
    		}
    		
    		/// <summary>
    		/// 获取列信息
    		/// </summary>
    		protected override MySoft.Data.Field[] GetFields() {
    			return new MySoft.Data.Field[] {
    					_.HospitalID,
    					_.Name__c,
    					_.Code__c,
    					_.Region__c,
    					_.Area__c,
    					_.Owner__c,
    					_.MSR_StaffID__c,
    					_.Active__c,
    					_.DataType__c,
    					_.Status__c,
    					_.Sync_Date__c,
    					_.Sync_Status__c};
    		}
    		
    		/// <summary>
    		/// 获取列数据
    		/// </summary>
    		protected override object[] GetValues() {
    			return new object[] {
    					this._HospitalID,
    					this._Name__c,
    					this._Code__c,
    					this._Region__c,
    					this._Area__c,
    					this._Owner__c,
    					this._MSR_StaffID__c,
    					this._Active__c,
    					this._DataType__c,
    					this._Status__c,
    					this._Sync_Date__c,
    					this._Sync_Status__c};
    		}
    		
    		/// <summary>
    		/// 给当前实体赋值
    		/// </summary>
    		protected override void SetValues(MySoft.Data.IRowReader reader) {
    			if ((false == reader.IsDBNull(_.HospitalID))) {
    				this._HospitalID = reader.GetString(_.HospitalID);
    			}
    			if ((false == reader.IsDBNull(_.Name__c))) {
    				this._Name__c = reader.GetString(_.Name__c);
    			}
    			if ((false == reader.IsDBNull(_.Code__c))) {
    				this._Code__c = reader.GetString(_.Code__c);
    			}
    			if ((false == reader.IsDBNull(_.Region__c))) {
    				this._Region__c = reader.GetString(_.Region__c);
    			}
    			if ((false == reader.IsDBNull(_.Area__c))) {
    				this._Area__c = reader.GetString(_.Area__c);
    			}
    			if ((false == reader.IsDBNull(_.Owner__c))) {
    				this._Owner__c = reader.GetString(_.Owner__c);
    			}
    			if ((false == reader.IsDBNull(_.MSR_StaffID__c))) {
    				this._MSR_StaffID__c = reader.GetString(_.MSR_StaffID__c);
    			}
    			if ((false == reader.IsDBNull(_.Active__c))) {
    				this._Active__c = reader.GetBoolean(_.Active__c);
    			}
    			if ((false == reader.IsDBNull(_.DataType__c))) {
    				this._DataType__c = reader.GetString(_.DataType__c);
    			}
    			if ((false == reader.IsDBNull(_.Status__c))) {
    				this._Status__c = reader.GetString(_.Status__c);
    			}
    			if ((false == reader.IsDBNull(_.Sync_Date__c))) {
    				this._Sync_Date__c = reader.GetString(_.Sync_Date__c);
    			}
    			if ((false == reader.IsDBNull(_.Sync_Status__c))) {
    				this._Sync_Status__c = reader.GetString(_.Sync_Status__c);
    			}
    		}
    		
    		public override int GetHashCode() {
    			return base.GetHashCode();
    		}
    		
    		public override bool Equals(object obj) {
    			if ((obj == null)) {
    				return false;
    			}
    			if ((false == typeof(test_Hospital).IsAssignableFrom(obj.GetType()))) {
    				return false;
    			}
    			if ((((object)(this)) == ((object)(obj)))) {
    				return true;
    			}
    			return false;
    		}
    		
    		public class _ {
    			
    			/// <summary>
    			/// 表示选择所有列，与*等同
    			/// </summary>
    			public static MySoft.Data.AllField All = new MySoft.Data.AllField<test_Hospital>();
    			
    			/// <summary>
    			/// 字段名：HospitalID - 数据类型：String
    			/// </summary>
    			public static MySoft.Data.Field HospitalID = new MySoft.Data.Field<test_Hospital>("HospitalID");
    			
    			/// <summary>
    			/// 字段名：Name__c - 数据类型：String
    			/// </summary>
    			public static MySoft.Data.Field Name__c = new MySoft.Data.Field<test_Hospital>("Name__c");
    			
    			/// <summary>
    			/// 医院编号 - 字段名：Code__c - 数据类型：String
    			/// </summary>
    			public static MySoft.Data.Field Code__c = new MySoft.Data.Field<test_Hospital>("Code__c");
    			
    			/// <summary>
    			/// 医院大区 - 字段名：Region__c - 数据类型：String
    			/// </summary>
    			public static MySoft.Data.Field Region__c = new MySoft.Data.Field<test_Hospital>("Region__c");
    			
    			/// <summary>
    			/// 医院片区 - 字段名：Area__c - 数据类型：String
    			/// </summary>
    			public static MySoft.Data.Field Area__c = new MySoft.Data.Field<test_Hospital>("Area__c");
    			
    			/// <summary>
    			/// 医院所属人 - 字段名：Owner__c - 数据类型：String
    			/// </summary>
    			public static MySoft.Data.Field Owner__c = new MySoft.Data.Field<test_Hospital>("Owner__c");
    			
    			/// <summary>
    			/// 医院所属员工编 - 字段名：MSR_StaffID__c - 数据类型：String
    			/// </summary>
    			public static MySoft.Data.Field MSR_StaffID__c = new MySoft.Data.Field<test_Hospital>("MSR_StaffID__c");
    			
    			/// <summary>
    			/// 医院已激活 - 字段名：Active__c - 数据类型：Boolean(可空)
    			/// </summary>
    			public static MySoft.Data.Field Active__c = new MySoft.Data.Field<test_Hospital>("Active__c");
    			
    			/// <summary>
    			/// 数据类型 - 字段名：DataType__c - 数据类型：String
    			/// </summary>
    			public static MySoft.Data.Field DataType__c = new MySoft.Data.Field<test_Hospital>("DataType__c");
    			
    			/// <summary>
    			/// 同步结果 - 字段名：Status__c - 数据类型：String
    			/// </summary>
    			public static MySoft.Data.Field Status__c = new MySoft.Data.Field<test_Hospital>("Status__c");
    			
    			/// <summary>
    			/// 同步时间 - 字段名：Sync_Date__c - 数据类型：String
    			/// </summary>
    			public static MySoft.Data.Field Sync_Date__c = new MySoft.Data.Field<test_Hospital>("Sync_Date__c");
    			
    			/// <summary>
    			/// 同步状态 - 字段名：Sync_Status__c - 数据类型：String
    			/// </summary>
    			public static MySoft.Data.Field Sync_Status__c = new MySoft.Data.Field<test_Hospital>("Sync_Status__c");
    		}
    	}
    }
    